package com.woniuxy.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.woniuxy.mapper.RoomMapper;
import com.woniuxy.pojo.Room;
import com.woniuxy.service.RoomService;

@Service
public class RoomServiceImp implements RoomService {
	
	@Resource
	private RoomMapper roomMapper;

	@Override
	public List<Room> findByType(String roomType) {
		return roomMapper.findByType(roomType);
	}

	@Override
	public List<Room> getAll() {
		return roomMapper.getAll();
	}

	@Override
	public List<Room> updateR(Room room) {
		return roomMapper.updateR(room);
	}

	@Override
	public int deleteR(int rid) {
		return roomMapper.deleteR(rid);
	}

	@Override
	public int insertR(Room room) {
		return roomMapper.insertR(room);
	}
	
}
